﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace IObjects
{
    public interface IMessage
    {
        MessageInfo MessageInfo
        {
            get;
            set;
        }
        string Mode
        {
            get;
            set;
        }
        int Save();
        IList<MessageInfo> GetMessages();
        IList<MessageInfo> GetMessagesInboxOfUser(string userId);
        IList<MessageInfo> GetMessagesOutboxOfUser(string userId);
        MessageInfo GetById(string id);
        IList<MessageInfo> GetDeletedMessagesInboxOfUser(string userId);
    }
}
